﻿using System;
using System.Collections.Generic;
using System.Web.UI;

public partial class Shared_UserControl_RadPagerEx : UserControl
{
    protected int[] GetPageSizes(object currentSize)
    {
        List<int> pageSizes = new List<int>(new int[] { 10, 20, 30, 40, 50 });
        int size = Convert.ToInt32(currentSize);
        if (!pageSizes.Contains(size))
        {
            pageSizes.Add(size);
            pageSizes.Sort();
        }
        return pageSizes.ToArray();
    }
}